//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_getranpointcircleairouter.sqf"
#include "x_setup.sqf"

// get a random point at the borders of a circle
// parameters:
// center position, radius of the circle
// example: _random_point = [position trigger1, 200] call FUNC(GetRanPointCircleAirOuter);
private ["_center", "_radius", "_co", "_angle", "_center_x", "_center_y"];
PARAMS_2(_center,_radius);
_center_x = _center select 0;_center_y = _center select 1;
_ret_val = [];
for "_co" from 0 to 10 do {
	_angle = floor (random 360);
	_ret_val = [_center_x - (_radius * sin _angle), _center_y - (_radius * cos _angle), 0];
};
_ret_val